import java.io.*;


public class WriteToFile {
	
	static FileWriter fr;

	static void write(String s){
		try {
			fr = new FileWriter(new File("mom.txt"));
			fr.write(s);
			fr.flush();
			fr.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args){
		write("HELLO");
	}
}
